package com.szq.netty;

import com.szq.netty.redis.RedisUtil;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

/**
 * @ClassName: Application
 * @Description:
 * @Author: szq
 * @Date: 2021-11-18 17:55:13
 */
@SpringBootApplication
public class Application implements CommandLineRunner {

    @Resource
    private RedisUtil redisUtil;

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        redisUtil.clear();
    }

}